package com.ajx.platform.buildingmronitor.controller;

import com.ajx.platform.buildingmronitor.model.VideoDTO;
import com.ajx.platform.buildingmronitor.service.ReceiveVideoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @Author: xuchao
 * @param:
 * @Date: 10:57 2019/8/17
 * @return:
 * @Version: 1.0
 **/
@RestController
public class ReceiveVideoController {

    private static Logger logger = LoggerFactory.getLogger(ReceiveVideoController.class);

    @Autowired
    ReceiveVideoService receiveVideoService;

    @PostMapping("/eba/msg/ws/upload")
    public Map receiveVideo(HttpServletRequest request, VideoDTO receiveParam)  throws Exception{
        return receiveVideoService.receiveVideo(request, receiveParam);
    }
}
